<!-- php:$title = $rs.title.' - '.$cate_rs.title.' - '.$page_rs.title -->
<!-- include tpl=head title=$title menutitle=$page_rs.title -->
<script type="text/javascript">
function order_create()
{
	$.dialog({
		'title':"订购咨询服务",
		'lock':true,
		'drag':false,
		'content':document.getElementById('zxform'),
		'fixed':true
	});
}
$(document).ready(function(){
	$("#furl").val('{$sys.url}{$rs.url}');
	$("#form_furl").hide();
	$("#postform").submit(function(){
		if(!$("#fullname").val()){
			$.dialog.alert('请填写您的姓名');
			return false;
		}
		if(!$("#mobile").val()){
			$.dialog.alert('请留下您的手机号');
			return false;
		}
		if(!$("#note").val()){
			$.dialog.alert('请填写您要咨询的内容');
			return false;
		}
		$(this).ajaxSubmit({
			'url':api_url('post','save'),
			'type':'post',
			'dataType':'json',
			'success':function(rs){
				if(rs.status == 'ok'){
					$.dialog.alert('感觉您提交的咨询服务，我们客服会尽快与您取得联系',function(){
						$.phpok.reload();
					},'succeed');
				}else{
					$.dialog.alert(rs.content);
					return false;
				}
			}
		});
		return false;
	});
});

</script>
<div class="banner"{if $page_rs.banner} style="background-image:url('{$page_rs.banner.gd.auto}')"{/if}></div>
<div id="zxform" style="display:none;">
	<form method="post" class="form" id="postform">
	<input type="hidden" name="id" value="zxservice" />
	<!-- php:$list = phpok('zxform') -->
	<div class="table">
		<div class="l">产品名称：</div>
		<div class="r"><input type="text" name="title" id="title" value="{$rs.title}" class="input noborder red" readonly /></div>
	</div>
	<!-- loop from=$list key=$key value=$value id=$tmpid -->
	<div class="table" id="form_{$value.identifier}">
		<div class="l">{$value.title}：</div>
		<div class="r">{$value.html}</div>
	</div>
	<!-- /loop -->
	<!-- if $sys.is_vcode && function_exists('imagecreate') -->
	<div class="table" id="form_{$value.identifier}">
		<div class="l">验证码：</div>
		<div class="r">
			<input class="vcode"  type="text" name="_chkcode" id="_chkcode" />
			<img src="" border="0" align="absmiddle" id="vcode" class="hand" />
		</div>
	</div>
	<script type="text/javascript">
	$(document).ready(function(){
		$("#vcode").phpok_vcode();
		$("#vcode").click(function(){
			$(this).phpok_vcode();
		});
	});
	</script>
	<!-- /if -->
	<div class="table">
		<div class="l">&nbsp;</div>
		<div class="r"><input type="submit" value="提交" class="large button blue" /></div>
	</div>
	</form>
</div>
<div class="main clearfix">
	<div class="left">
		<!-- include tpl=block_catelist -->
		<!-- include tpl=block_contact -->
	</div>
	<div class="right">
		<div class="pfw">
			<div class="title">
				<h3>{$cate_rs ? $cate_rs.title : $page_rs.title}</h3>
				<span class="breadcrumbs">
					您现在的位置：
					<a href="{$sys.url}" title="{$config.title}">首页</a>
					<span class="arrow">&gt;</span> <a href="{$page_rs.url}" title="{$page_rs.title}">{$page_rs.title}</a>
					<!-- if $cate_rs -->
					<span class="arrow">&gt;</span> <a href="{$cate_rs.url}" title="{$cate_rs.title}">{$cate_rs.title}</a>
					<!-- /if -->
				</span>
			</div>
			<div class="product clearfix">
				<div class="img" id="product_img">
					<ul class="list">
						<!-- loop from=$rs.thumb key=$key value=$value -->
						<li><img src="{#images#}/blank.gif" _src="{$value.gd.auto}" border="0" alt="{$rs.title}" /></li>
						<!-- /loop -->
					</ul>
					<ul class="thumb_list">
						<!-- loop from=$rs.thumb key=$key value=$value -->
						<li><img src="{$value.gd.thumb}" border="0" alt="{$value.title}" /></li>
						<!-- /loop -->
					</ul>
				</div>
				<script type="text/javascript">
				$(document).ready(function(){
					$("#product_img").slide({
						'titCell':'ul.thumb_list li',
						'mainCell':'ul.list',
						'autoPlay':true,
						'switchLoad':"_src",
						'effect':"fold"
					});
				});
				</script>
				<div class="info">
					<h1>{$rs.title}</h1>
					<p>查看：{$rs.hits}</p>
					<p>时间：{func date Y-m-d $rs.dateline}</p>
					<!-- loop from=$rs.attrs key=$key value=$value id=$tmpid -->
					<p>{$key}：{$value}</p>
					<!-- /loop -->
					<!-- if $rs.price && is_numeric($rs.price) -->
					<p><span>价格：</span><span class="price">{$rs.price} 元</span></p>
					<!-- elseif $rs.price -->
					<p><span>价格：</span><span class="price">{$rs.price}</span></p>
					<!-- /if -->
					<p style="padding-top:10px;">
						<input type="button" value="立即咨询" onclick="order_create()" class="large red button" />
					</p>
				</div>
			</div>

			<div class="detail product_info">
				<div class="content">{$rs.content}</div>
				<div class="np">
					<p>上一主题：
						<!-- php:$prev = phpok_prev($rs) -->
						<!-- if $prev -->
						<a href="{$prev.url}" title="{$prev.title}">{$prev.title}</a>
						<!-- else -->
						没有了
						<!-- /if -->
					</p>
					<p>下一主题：
						<!-- php:$next = phpok_next($rs) -->
						<!-- if $next -->
						<a href="{$next.url}" title="{$next.title}">{$next.title}</a>
						<!-- else -->
						没有了
						<!-- /if -->
					</p>
				</div>
				<div class="comment">
					<!--高速版-->
					<div id="SOHUCS"></div>
					<script charset="utf-8" type="text/javascript" src="http://changyan.sohu.com/upload/changyan.js" ></script>
					<script type="text/javascript">
					    window.changyan.api.config({
					        appid: 'cyrhNRjRy',
					        conf: 'prod_24b1653f7f39bec7ca20d5ea1fe9ad1f'
					    });
					</script>        
				</div>
			</div>
		</div>
	</div>
</div>

<!-- include tpl=foot -->